 package srdb.migration.schema.metadata;
 
 import srdb.migration.MigrationToolkit;
import srdb.migration.common.MTKConstants;
 
 public class Synonym extends DBObject
 {
   private String synname;
   private String synowner;
   private String synobjname;
   private String synObjSchema;
   private String dblink;
   private String table_owner;
   private String schemaName = null;
 
   public boolean isPublic()
   {
     if (MigrationToolkit.getInstance().getSourceDBType() == MTKConstants.DATABASE_TYPE.ENTERPRISEDB) {
       return (this.synObjSchema != null) && (this.synObjSchema.compareToIgnoreCase("public") == 0);
     }
     return (this.synowner != null) && (this.synowner.compareToIgnoreCase("PUBLIC") == 0);
   }
 
   public String getSchemaName()
   {
     return this.schemaName;
   }
 
   public void setSchemaName(String schemaName) {
     this.schemaName = schemaName;
   }
 
   public String getTable_owner()
   {
     return this.table_owner;
   }
 
   public void setTable_owner(String table_owner) {
     this.table_owner = table_owner;
   }
 
   public String getDblink() {
     return this.dblink;
   }
 
   public void setDblink(String dblink) {
     this.dblink = dblink;
   }
 
   public Synonym(String schemaName)
   {
     this.schemaName = schemaName;
   }
 
   public String getSynname() {
     return this.synname;
   }
 
   public String getSynname(boolean schemaQualified)
   {
     if ((schemaQualified) && (this.schemaName != null)) {
       return this.schemaName + "." + this.synname;
     }
 
     return this.synname;
   }
 
   public void setSynname(String synname) {
     this.synname = synname;
   }
 
   public String getSynowner() {
     return this.synowner;
   }
 
   public void setSynowner(String synowner) {
     this.synowner = synowner;
   }
 
   public String getSynobjname() {
     return this.synobjname;
   }
 
   public void setSynobjname(String synobjname) {
     this.synobjname = synobjname;
   }
 
   public String getName()
   {
     return getSynname();
   }
 
   public DBObject getParent()
   {
     return null;
   }
 
   public String getSchema()
   {
     return this.schemaName;
   }
 
   public String getSynObjSchema()
   {
     return this.synObjSchema;
   }
 
   public void setSynObjSchema(String synObjSchema)
   {
     this.synObjSchema = synObjSchema;
   }
 }

/* 

 * 
 */